package kr.co.owls.service;

import java.util.Comparator;

import kr.co.owls.data.ResultVO;

public class DistanceComparator implements Comparator<ResultVO> {

	@Override
	public int compare(ResultVO o1, ResultVO o2) {
		if((o1.getRealDistance() - o2.getRealDistance()) > 0)
			return 1;
		else if(o1.getRealDistance() == o2.getRealDistance())
			return 0;
		else 
			return -1;
	}
};
